.PHONY: all build clean

CC = gcc
CXX = g++ -g

DEFINES =

POPPLER_INCLUDES = 
CLUCENE_INCLUDES = -I/usr/lib64
INCLUDES = -I./src/ $(POPPLER_INCLUDES) $(CLUCENE_INCLUDES)

POPPLER_LIBS = -lpoppler
CLUCENE_LIBS = -lclucene
LIBS = $(POPPLER_LIBS) $(CLUCENE_LIBS)

OUTDIR = bin

all: build

build:
	mkdir -p $(OUTDIR)
	$(CXX) $(DEFINES) $(INCLUDES) $(LIBS) src/main.cpp -o $(OUTDIR)/main

clean:
	rm -rf $(OUTDIR)


